package com.hyt.it.ogt.pj.feign.cloudefile;

import com.hyt.common.apiInfor.ApiResponse;
import com.hyt.loginfo.config.OAuth2FeignRequestConfig;
import com.hyt.model.cloudefile.apiparams.FileRecodeParam;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * description 远程调用获取导入记录信息类
 *
 * @author yaojian
 * @createTime 2021/12/06
 */
@FeignClient(value = "it-ogt-webcommon", fallback = RecordClientHystrix.class, configuration = OAuth2FeignRequestConfig.class)
public interface RecordClient {

    /**
     * 根据考试id获取考试信息
     *
     * @param fileRecodeParam
     * @return
     */
    @RequestMapping(value = "/api/queryLastFileRecode", method = RequestMethod.POST)
    ApiResponse<Object> queryLastFileRecode(@RequestBody FileRecodeParam fileRecodeParam);

    /**
     * 根据考试id获取考试信息
     *
     * @param fileRecodeParam
     * @return
     */
    @RequestMapping(value = "/api/fileRecode", method = RequestMethod.POST)
    ApiResponse<Object> queryfileRecode(@RequestBody FileRecodeParam fileRecodeParam);


}
